from tkinter import*
x=int(input('x='))
y=int(input('y='))
n=int(input('n='))
coords3=[0*n+x, 0*n+y, 10*n+x, 0*n+y, 10*n+x, 10*n+y, 20*n+x, 10*n+y, 20*n+x, 30*n+y, 10*n+x, 30*n+y, 10*n+x, 20*n+y,0*n+x,20*n+y ]
if n!=0 and max(coords3)<=500 and min(coords3)>=0:
    root=Tk()
    root.title('ИТ-марафон')
    root.geometry('500x500')
    
    canvas=Canvas(bg='white', width=500, height=500)
    canvas.pack(anchor=CENTER, expand=1)
    canvas.create_polygon(coords3)
    
    root.mainloop()
else:
    print('фигура выходит за пределы поля!')
    exit()